package com.sky.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.sky.mapper.imapper.UserMapper;
import com.sky.mapper.model.User;
import com.sky.service.UserService;

/**
 * 用户业务层实现类
 * @author Administrator
 *
 */
@Service
public class UserServiceImpl implements UserService {
	
	//自动注入UserMapper接口的代理对象
	@Resource
	private UserMapper userMapper;
	
	@Override
	public void add(User u) {
		
		userMapper.add(u);
	}

	@Override
	public List<User> check(User u) {
		
		return userMapper.check(u);
	}

	
	@Override
	public void update(User u) {
		userMapper.update(u);
		
	}

	@Override
	public List<User> query(Map<String, Object> param) {
		return  userMapper.query(param);
	}

	@Override
	public void delete(int uid) {
		userMapper.delete(uid);
		
	}

}
